﻿using Microsoft.EntityFrameworkCore;
using Paas.Pioneer.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.Pioneer.Admin.Core.Domain.Works.Label
{
    /// <summary>
    /// 标签表
    /// </summary>
    [Table("Works_Label")]
    [Comment("标签表")]
    public class Works_LabelEntity : BaseEntity
    {
        /// <summary>
        /// 标签名称
        /// </summary>
        [Comment("标签名称")]
        [Column("LabelName", TypeName = "varchar(100)")]
        public string LabelName { get; set; }

        /// <summary>
        /// 标签被用次数
        /// </summary>
        [Comment("标签被用次数")]
        [Column("UsageCount", TypeName = "int")]
        public int UsageCount { get; set; }

        /// <summary>
        /// 是否置顶标签
        /// </summary>
        [Comment("是否置顶标签")]
        [Column("IsTop")]
        public bool IsTop { get; set; } = false;
    }
}
